package SPAN::View::XHTML;

use Reaction::Class;

extends 'Reaction::UI::Renderer::XHTML';

__PACKAGE__->config(
    INCLUDE_PATH => [
        SPAN->path_to(qw/root/), SPAN->path_to(qw/root src/),
        SPAN->path_to(qw/root base/)
    ],
    css_path    => '/static/css',
    stylesheets => [qw(main.css)]
);

sub render {
    my ( $self, $c, $template, $args ) = @_;

    my $stylesheets = $args->{stylesheets} || [];
    push @$stylesheets, @{ $self->{stylesheets} || [] };
    $args->{stylesheets} = $stylesheets;

    $args->{css_path} ||= $self->{css_path};

    $self->SUPER::render( $c, $template, $args );
}

1;
